﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012DD RID: 4829
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncHandleFriendScNotify : IMessage<SyncHandleFriendScNotify>, IMessage, IEquatable<SyncHandleFriendScNotify>, IDeepCloneable<SyncHandleFriendScNotify>, IBufferMessage
	{
		// Token: 0x17003D04 RID: 15620
		// (get) Token: 0x0600D851 RID: 55377 RVA: 0x002441B3 File Offset: 0x002423B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncHandleFriendScNotify> Parser
		{
			get
			{
				return SyncHandleFriendScNotify._parser;
			}
		}

		// Token: 0x17003D05 RID: 15621
		// (get) Token: 0x0600D852 RID: 55378 RVA: 0x002441BA File Offset: 0x002423BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncHandleFriendScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D06 RID: 15622
		// (get) Token: 0x0600D853 RID: 55379 RVA: 0x002441CC File Offset: 0x002423CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncHandleFriendScNotify.Descriptor;
			}
		}

		// Token: 0x0600D854 RID: 55380 RVA: 0x002441D3 File Offset: 0x002423D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncHandleFriendScNotify()
		{
		}

		// Token: 0x0600D855 RID: 55381 RVA: 0x002441DC File Offset: 0x002423DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncHandleFriendScNotify(SyncHandleFriendScNotify other) : this()
		{
			this.friendInfo_ = ((other.friendInfo_ != null) ? other.friendInfo_.Clone() : null);
			this.uid_ = other.uid_;
			this.isAccept_ = other.isAccept_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D856 RID: 55382 RVA: 0x00244234 File Offset: 0x00242434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncHandleFriendScNotify Clone()
		{
			return new SyncHandleFriendScNotify(this);
		}

		// Token: 0x17003D07 RID: 15623
		// (get) Token: 0x0600D857 RID: 55383 RVA: 0x0024423C File Offset: 0x0024243C
		// (set) Token: 0x0600D858 RID: 55384 RVA: 0x00244244 File Offset: 0x00242444
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendSimpleInfo FriendInfo
		{
			get
			{
				return this.friendInfo_;
			}
			set
			{
				this.friendInfo_ = value;
			}
		}

		// Token: 0x17003D08 RID: 15624
		// (get) Token: 0x0600D859 RID: 55385 RVA: 0x0024424D File Offset: 0x0024244D
		// (set) Token: 0x0600D85A RID: 55386 RVA: 0x00244255 File Offset: 0x00242455
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x17003D09 RID: 15625
		// (get) Token: 0x0600D85B RID: 55387 RVA: 0x0024425E File Offset: 0x0024245E
		// (set) Token: 0x0600D85C RID: 55388 RVA: 0x00244266 File Offset: 0x00242466
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsAccept
		{
			get
			{
				return this.isAccept_;
			}
			set
			{
				this.isAccept_ = value;
			}
		}

		// Token: 0x0600D85D RID: 55389 RVA: 0x0024426F File Offset: 0x0024246F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncHandleFriendScNotify);
		}

		// Token: 0x0600D85E RID: 55390 RVA: 0x00244280 File Offset: 0x00242480
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncHandleFriendScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.FriendInfo, other.FriendInfo) && this.Uid == other.Uid && this.IsAccept == other.IsAccept && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D85F RID: 55391 RVA: 0x002442E0 File Offset: 0x002424E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.friendInfo_ != null)
			{
				num ^= this.FriendInfo.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.IsAccept)
			{
				num ^= this.IsAccept.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D860 RID: 55392 RVA: 0x0024434E File Offset: 0x0024254E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D861 RID: 55393 RVA: 0x00244356 File Offset: 0x00242556
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D862 RID: 55394 RVA: 0x00244360 File Offset: 0x00242560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Uid);
			}
			if (this.friendInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.FriendInfo);
			}
			if (this.IsAccept)
			{
				output.WriteRawTag(120);
				output.WriteBool(this.IsAccept);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D863 RID: 55395 RVA: 0x002443D8 File Offset: 0x002425D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.friendInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FriendInfo);
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.IsAccept)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D864 RID: 55396 RVA: 0x0024443C File Offset: 0x0024263C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncHandleFriendScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.friendInfo_ != null)
			{
				if (this.friendInfo_ == null)
				{
					this.FriendInfo = new FriendSimpleInfo();
				}
				this.FriendInfo.MergeFrom(other.FriendInfo);
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.IsAccept)
			{
				this.IsAccept = other.IsAccept;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D865 RID: 55397 RVA: 0x002444B8 File Offset: 0x002426B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D866 RID: 55398 RVA: 0x002444C4 File Offset: 0x002426C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 90U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.IsAccept = input.ReadBool();
						}
					}
					else
					{
						if (this.friendInfo_ == null)
						{
							this.FriendInfo = new FriendSimpleInfo();
						}
						input.ReadMessage(this.FriendInfo);
					}
				}
				else
				{
					this.Uid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005622 RID: 22050
		private static readonly MessageParser<SyncHandleFriendScNotify> _parser = new MessageParser<SyncHandleFriendScNotify>(() => new SyncHandleFriendScNotify());

		// Token: 0x04005623 RID: 22051
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005624 RID: 22052
		public const int FriendInfoFieldNumber = 11;

		// Token: 0x04005625 RID: 22053
		private FriendSimpleInfo friendInfo_;

		// Token: 0x04005626 RID: 22054
		public const int UidFieldNumber = 3;

		// Token: 0x04005627 RID: 22055
		private uint uid_;

		// Token: 0x04005628 RID: 22056
		public const int IsAcceptFieldNumber = 15;

		// Token: 0x04005629 RID: 22057
		private bool isAccept_;
	}
}
